package com.wt.springsamples.biz.service.impl;

import com.wt.springsamples.biz.mybatis.mapper.OrderMapper;
import com.wt.springsamples.biz.service.IOrderService;
import com.wt.springsamples.model.OrderEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements IOrderService {

    @Autowired
    private OrderMapper orderMapper;

    @Override
    public OrderEntity getById(long id) {
        return orderMapper.selectById(id);
    }

    @Override
    public List<OrderEntity> listAll() {
        return null;
    }
}
